You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shows you the changed files you need to commit outside of notebooks/templates
Install & initialize ValidMind
If the user chooses to append the contents of this template to the notebook, they will also be prompted to enter:
A {template} name
A {use-case}
Default
Example generated notebook
Cell IDs
The templates have been broken down into individual cells with cell IDs, in preparation for maybe being able to bulk-edit notebooks in sc-4132. There are some other considerations, like how all pre-existing notebooks will need to be recreated with this templating script/notebook, and how we can work around injected table-of-contents anchors, but, hey, it's a head start.
This pull request introduces several enhancements to the ValidMind project:
Makefile Update: A new notebook command has been added to the Makefile. This command runs a Python script located at notebooks/templates/e2e_template.py and filters the output of git status to exclude changes in the notebooks/templates directory.
Notebook Templates: Several Jupyter notebook templates have been added under the notebooks/templates directory. These templates include:
about-validmind.ipynb: Provides an overview of ValidMind, its key concepts, and prerequisites.
e2e-notebook.ipynb: A template for generating end-to-end notebooks for ValidMind.
install-initialize-validmind.ipynb: Instructions for installing and initializing the ValidMind Library.
next-steps.ipynb: Guidance on next steps after using the ValidMind Library.
upgrade-validmind.ipynb: Instructions for upgrading the ValidMind Library.
Template README: A new README file has been added to the notebooks/templates directory, providing a quick start guide for creating code samples using the provided templates.
Python Script for Notebook Generation: A Python script e2e_template.py has been added to facilitate the creation of new Jupyter notebooks by combining various mini-templates. This script includes functions for creating notebooks, setting titles, and appending content from mini-templates.
Documentation Update: The notebooks/README.md file has been updated to remove the deprecated notebooks/archive section and add a new section on contributing code samples.
Test Suggestions
Test the new make notebook command to ensure it correctly runs the Python script and filters the git status output.
Verify that each Jupyter notebook template can be opened and executed without errors.
Check that the Python script e2e_template.py correctly creates a new notebook and appends content from mini-templates.
Ensure that the README files provide accurate and clear instructions for using the templates and contributing code samples.
Test the integration of the new templates with the ValidMind Library to ensure they function as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internalNot to be externalized in the release notes
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Internal Notes for Reviewers
Migrated Jupyter Notebook templates
I moved the templates that used to live in
documentation/internal/templates/jupyter-notebookstovalidmind-library/notebooks/templates:notebooksREADMEInteractive end-to-end notebook template generation
There is now a fancy new Python script and an accompanying notebook:
notebooks/templates/e2e_template.pynotebooks/templates/e2e-notebook.ipynbYou can either run the notebook, or call
make notebookfrom the root of thevalidmind-libraryrepo:validmind-library/Makefile
Line 83 in 17bc771
The functionality of the script and the notebook is the same:
notebooks/code_sharingh1headernotebooks/templates/about-validmind.ipynbnotebooks/templates/install-initialize-validmind.ipynbnotebooks/templates/next-steps.ipynbnotebooks/templates/upgrade-validmind.ipynbnotebooks/templatesInstall & initialize ValidMind
If the user chooses to append the contents of this template to the notebook, they will also be prompted to enter:
{template}name{use-case}Cell IDs
The templates have been broken down into individual cells with cell IDs, in preparation for maybe being able to bulk-edit notebooks in sc-4132. There are some other considerations, like how all pre-existing notebooks will need to be recreated with this templating script/notebook, and how we can work around injected table-of-contents anchors, but, hey, it's a head start.